package com.wxw.jwt.controller;


import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cnm
 * @since 2021-08-30
 */
@RestController
@RequestMapping("/auth")
public class SysRoleController {

    @RequiresRoles("admin")
    @GetMapping("admin")
    public String admin() {
        return "管理员";
    }
}

